﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="CMS.aspx.cs" Inherits="Admin_CMS" Title="Untitled Page" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
    <table cellpadding="10" border="0" cellspacing="10" class="table_area">
        <tr>
            <td colspan="3" class="heading-text">CMS Contents</td>
        </tr>
        <tr>
            <td colspan="3">
                <ucc:ResponseMessage ID="uccResponse" runat="server" ></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td>Select Content For</td>
            <td> : </td>
            <td>
                <asp:DropDownList ID="ddlCMSTitle" runat="server" AutoPostBack="true" 
                    OnSelectedIndexChanged="CMS_SelectedIndexChanged"></asp:DropDownList>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlCMSTitle"
                    SetFocusOnError="true" ErrorMessage="Please select a content" Display="Dynamic" InitialValue="0">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>Content Title</td>
            <td> : </td>
            <td>
                <asp:Label ID="lblCMSTitle" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>Last Update</td>
            <td> : </td>
            <td>
                <asp:Label ID="lblLastUpdate" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="top">Content</td>
            <td class="top"> : </td>
            <td>
                <FCKeditorV2:FCKeditor ID="fckCMSContent" runat="server" Width="700px" Height="300px">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td colspan="2"></td>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="Save_Click" 
                    SkinID="PlainButton" />
            </td>
        </tr>
    </table>
</asp:Content>

